﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace WeiBOAPI.Sina
{
    [XmlRoot(ElementName = "emotion",
     DataType = "string",
     IsNullable = true)]
    public class Emotion
    {
        [XmlElement("phrase")]
        public string Phrase { get; set; }

        [XmlElement("type")]
        public string EmotionType { get; set; }

        [XmlElement("url")]
        public string EmotionUrl { get; set; }

        [XmlElement("is_hot")]
        public string IsHot { get; set; }

        [XmlElement("is_common")]
        public string IsCommon { get; set; }

        [XmlElement("order_number")]
        public string OrderNumber { get; set; }

        [XmlElement("category")]
        public string Category { get; set; }
    }

    public class SinaEmotions
    {
        [XmlArrayAttribute("Emotions")]
        public List<Emotion> Emotions { get; set; }
    }
}
